<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
<head>
<title>系统配置</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="${ctx}/static/bootstrap-3.3.4-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="${ctx}/static/bootstrap-table-1.7.0/src/bootstrap-table.css">
<script type="text/javascript" src="${ctx}/static/bootstrap-3.3.4-dist/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="${ctx}/static/bootstrap-3.3.4-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/static/bootstrap-table-1.7.0/src/bootstrap-table.min.js"></script>
<script type="text/javascript" src="${ctx}/static/bootstrap-table-1.7.0/src/locale/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript">
	var $grid;
	$(function() {
		$grid = $("#table").bootstrapTable({
			method : 'get',
			url : '${ctx}/wxWeb/wxConfig/dataGrid',
			cache : false,
			striped : true,
			undefinedText : "",
			pagination : true,
			height : 520,
			pageList : [ 10, 25, 50, 100, 200 ],
			search : true,
			showColumns : true,
			showRefresh : true,
			showToggle : true,
			showExport : true,
			minimumCountColumns : 2,
			clickToSelect : true,
			singleSelect : true,
			toolbar : "#tt",
			columns : [ {
				field : 'ck',
				checkbox : true
			}, {
				field : 'configNo',
				title : '配置编号',
				sortable : true
			}, {
				field : 'configName',
				title : '配置名称',
				sortable : true
			}, {
				field : 'configValue',
				title : '配置值',
				sortable : true
			}, {
				field : 'configValue',
				title : '是否启用',
				sortable : true,
				formatter : function(val) {
					return val == 1 ? "是" : "否";
				}
			} ]
		});
	});
</script>
</head>

<body>
	<div id="bodyDiv">
		<table id="table"></table>
		<div class="btn-toolbar" role="toolbar" id="tt"></div>
	</div>
</body>
</html>
